using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Workflow2211A.Domain.Entities;

namespace Workflow2211A.Domain.RBAC
{
    /// <summary>
    /// 用户表
    /// </summary>
    [Table("Users")]
    public class UsersModel : BaseEntity
    {
        /// <summary>
        /// 用户名
        /// </summary>
        [Required]
        [StringLength(100)]
        public string Username { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        [Required]
        [StringLength(100)]
        public string Password { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        [StringLength(100)]
        public string Name { get; set; }

        /// <summary>
        /// 邮箱
        /// </summary>
        [StringLength(100)]
        public string Email { get; set; }

        /// <summary>
        /// 手机号
        /// </summary>
        [StringLength(20)]
        public string Phone { get; set; }
        
        /// <summary>
        /// 是否启用
        /// </summary>
        public bool UserState { get; set; }

    }
}